/*
 * @Author: Bo Cai
 * @Mail: caibo0520@qq.com
 * @Date: 2021-12-14 23:05:20
 * @LastEditors: Bo Cai
 * @LastEditTime: 2021-12-15 16:30:17
 */
import request from '@/utils/request'

export default {
    getBannerList() {
        return request({
            url: `/cms-service/banner/get-all-banner`,
            method: 'get',
        })
    },
    deleteBannerById(id) {
        return request({
            url: `/cms-service/banner/remove/${id}`,
            method: 'delete',
        })
    },
    addBanner(bannerInfo) {
        return request({
            url: `/cms-service/banner/save`,
            method: 'post',
            data: bannerInfo
        })
    },
    getBannerById(id) {
        return request({
            url: `/cms-service/banner/get/${id}`,
            method: 'get',
        })
    },
    updateBanner(bannerInfo) {
        return request({
            url: `/cms-service/banner/update`,
            method: 'put',
            data: bannerInfo
        })
    }
}
